package com.heima.pet_shop;

import java.util.ArrayList;

public class PetShop {
    private ArrayList<Pet> pets;

    public PetShop(ArrayList<Pet> pets) {
        this.pets = pets;
    }

    public void addPet(Pet p) {
        pets.add(p);
    }

    public void playWithPets() {
        for (int i = 0; i < pets.size(); i++) {
            Pet p = pets.get(i);
            p.paly();
        }
    }

}
